package xjtu.se.articlecommunity.user.publisharticle.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import xjtu.se.articlecommunity.user.publisharticle.dto.ATagDto;

import java.util.List;

public interface ATagDao {
    @Select("select max(convert(at_tab,signed)) from t_article_tab")
    Integer findMaxID(ATagDto aTagDto);

    @Select("select at_name from t_article_tab where convert(at_tab,signed) = #{at_tab}")
    String findATNamebyATID(ATagDto aTagDto);

    @Insert("insert into art_tab values(#{a_id},#{at_tab})")
    void InsertArtTab(@Param("a_id") int a_id,@Param("at_tab") String at_tab);
}
